package com.samebuilding.dao.impl;

import java.util.List;

import com.samebuilding.dao.PhotoCategoryDAO;
import com.samebuilding.domain.PhotoCategory;

/**
 * A data access object (DAO) providing persistence and search support for
 * PhotoCategory entities. Transaction control of the save(), update() and
 * delete() operations can directly support Spring container-managed
 * transactions or they can be augmented to handle user-managed Spring
 * transactions. Each of these methods provides additional information for how
 * to configure it for the desired type of transaction control.
 * 
 * @see com.samebuilding.domain.PhotoCategory
 * @author MyEclipse Persistence Tools
 */

public class PhotoCategoryDAOImpl extends
		GenericDAOImpl<PhotoCategory, Integer> implements PhotoCategoryDAO {

	public List<PhotoCategory> findPhotoCategoryByUserNo(int userNo) {
		return this.getHibernateTemplate().find("from PhotoCategory p where p.userNo=?", userNo);
	}

}